<template>
  <view v-if="value" class="subscribe-tip-img" @click="click">
    <view class="img"><WImage name="message-tip.png" /></view>
  </view>
</template>

<script>
import WImage from '@/components/w-image';

export default {
  components: {
    WImage
  },
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  data: () => ({
    visible: false,
  }),
  methods: {
    click() {
      this.visible = false;
      this.$emit('input', this.visible)
    }
  }
};
</script>

<style lang="less" scoped>
.subscribe-tip-img {
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  .img {
    position: fixed;
    top: 142rpx;
    left: 50%;
    transform: translateX(-50%);
    width: 516rpx;
    height: 420rpx;
  }
}
</style>
